package com.immyc.common.bean.enums;

/**
 * @Description:
 * @Author:mayc
 * @Date:2019/5/12 21:27
 */
public enum StatusCode {

    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    INVALID_PARAM(10000, "无效的参数");

    private Integer code;
    private String msg;

    StatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
